import request from '@/utils/request'

// 查询订单额外费用列表
export function listExtra(query) {
  return request({
    url: '/system/extra/list',
    method: 'get',
    params: query
  })
}

// 查询订单额外费用详细
export function getExtra(orderExtraId) {
  return request({
    url: '/system/extra/' + orderExtraId,
    method: 'get'
  })
}

// 新增订单额外费用
export function addExtra(data) {
  return request({
    url: '/system/extra',
    method: 'post',
    data: data
  })
}

// 修改订单额外费用
export function updateExtra(data) {
  return request({
    url: '/system/extra',
    method: 'put',
    data: data
  })
}

// 删除订单额外费用
export function delExtra(orderExtraId) {
  return request({
    url: '/system/extra/' + orderExtraId,
    method: 'delete'
  })
}
